#ifndef _AUDIO_STREAM_H_
#define _AUDIO_STREAM_H_

#include "def.h"
#include "porting.h"
#include "_video.h"

VIDEO_ERROR audio_stream_init();
VIDEO_ERROR audio_stream_free();
VIDEO_ERROR audio_stream_frame_out(FRAME* frame);
VIDEO_ERROR audio_stream_frame_in(FRAME* frame);

VIDEO_ERROR audio_driver_open(int flag);//flag==1 waveout; 0 wavein
VIDEO_ERROR audio_driver_close(int flag);
VIDEO_ERROR audio_driver_read(u8* buff, u32* len);
VIDEO_ERROR audio_driver_write(u8* buff, u32* len);

#endif
